package com.loanapp.server.market.api.customer.hystrix;

import com.github.pagehelper.PageInfo;
import com.loanapp.server.market.api.bbs.api.CommentApi;
import com.loanapp.server.market.api.bbs.entity.Comment;
import com.loanapp.server.market.api.customer.api.CustomerBorrowInfoApi;
import com.loanapp.server.market.api.customer.entity.CustomerBorrowInfo;
import com.loanapp.server.market.api.customer.query.CustomerBorrowInfoQuery;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class CustomerBorrowInfoApiFallbackFactory implements FallbackFactory<CustomerBorrowInfoApi> {

    public CustomerBorrowInfoApi create(final Throwable throwable) {
        return new CustomerBorrowInfoApi() {
            public Long InsertCustomerBorrowInfo(CustomerBorrowInfo customerBorrowInfo) throws Exception {
                return null;
            }

            public CustomerBorrowInfo selectOne(Long Biid) throws Exception {
                return null;
            }

            public PageInfo<Map<String, Object>> getBorrowInfoListPage(CustomerBorrowInfoQuery query) throws Exception {
                return null;
            }

            public List<Map<String, Object>> getApplyListPage(int[] page, Long user) {
                return null;
            }

            public void insertApplyRecord(Long user, Long productId) {

            }
        };
    }
}